码云 Gitee — 基于 Git 的代码托管和研发协作平台码云 Gitee — 基于 Git 的代码托管和研发协作平台 开源软件企业版特惠高校版博客
搜索项目
 登录注册
「轻量级 PR」全新上线：参与开源贡献，原来只是举手之劳的事 >>
 Watch1  Star0  Fork0 圆圆的麻园 / 窝窝头
 代码 Issues 0 Pull Requests 0 附件 0 Wiki 0 统计 DevOps   服务
加入码云
与超过 400 万 开发者一起发现、参与优秀开源项目，私有仓库也完全免费 ：）
免费加入
已有帐号？ 立即登录
该仓库未指定开源许可证，未经作者的许可，此代码仅用于学习，不能用于其他用途。
暂无描述
 6 次提交
 1 个分支
 0 个标签
 0 个发行版
 1 位贡献者
 克隆/下载 master
wo_wotou/ tested / src / components / main.vue
main.vue
14.57 KB
一键复制编辑Web IDE原始数据按行查看历史
圆圆的麻园 提交于 20小时前 . 2020年3月15日15:04:53
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<template>
	<div>
		<Layout>
			<Header>
				<Row>
					<Col span="6">
					<img src="../assets/logo.png" class="logo" />
					</Col>
					<Col span="12">
					<List>
						<ListItem class="top">首页</ListItem>
						<ListItem>班级</ListItem>
						<ListItem>考试</ListItem>
						<ListItem>课程</ListItem>
						<ListItem>题库</ListItem>
						<ListItem>上课</ListItem>
						<ListItem>进度计划模板</ListItem>
						<ListItem>进度计划管理</ListItem>

					</List>
					</Col>
					<Col span="6">
					<img src="../assets/2.jpg" class="img1" />
					<Dropdown>
						<a href="javascript:void(0)">
							窝窝头
							<Icon type="ios-arrow-down"></Icon>
						</a>
						<DropdownMenu slot="list">
							<DropdownItem style="width: 90px;font-size: 10px;">退出登录</DropdownItem>
						</DropdownMenu>
					</Dropdown>
					</Col>
				</Row>
			</Header>
			<Layout>
				<!-- 左侧导航栏 -->
				<Sider hide-trigger>
					<div class="one">
						<Row>
							<Col span="24">
							<p style="height: 100px;">
								<img src="../assets/2.jpg" class="img2" />
							</p>
							</Col>
						</Row>
						<Row>
							<Col span="24">
							<p style="height: 20px;" class="p">
								窝窝头
							</p>
							</Col>
						</Row>
						<Row>
							<Col span="24">
							<p style="height: 15px;" class="p1">
								暂未设置个人标签
							</p>
							</Col>
						</Row>
						<Row>
							<Col span="24">
							<p style="height: 60px;" class="p2">
								<Button class="btn">去上课</Button>
							</p>
							</Col>
						</Row>
						<!-- 修改密码 -->
						<Modal title="修改密码" v-model="modal" width="60%">

							<Form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-position="labelPosition">
								<FormItem label="新密码" prop="password">
									<Input v-model="formValidate.password" placeholder="至少6位密码，至多20位密码，区分大小写" prefix="ios-lock-outline" type="password"
									 password />
									</Input>
								</FormItem>
								<FormItem label="确认新密码" prop="aginer">
									<Input v-model="formValidate.aginer" placeholder="确认密码" prefix="ios-lock-outline" type="password"></Input>
								</FormItem>
								<FormItem label="验证码" prop="yzm">
									<div class="di">
										<Input v-model="formValidate.yzm" placeholder="请输入4位数验证码" prefix="ios-apps-outline">
										</Input>
										<Button>获取验证码</Button>
									</div>
								</FormItem>
								<FormItem prop="mail">
									<div class="di-two">
										<Button>保存</Button>
									</div>
								</FormItem>
							</Form>
						</Modal>

						<!-- 我的消息 -->
						<div class="tion">
							<Modal v-model="modal1" title="消息查看" width="70%">
								<div class="bodys">
									暂无数据
								</div>

							</Modal>
						</div>
						<Row>
							<Col span="12">
							<p style="height: 35px;" class="i1">
								<i class="el-icon-unlock" @click="modal = true">修改密码</i>
							</p>
							</Col>
							<Col span="12">
							<p style="height: 35px;" class="i">
								<i class="el-icon-message-solid" @click="modal1 = true">我的消息</i>
							</p>
							</Col>
						</Row>
					</div>
					<!-- 第二部分 -->
					<div class="two">
						<ul class="ul">
							<li><i class="el-icon-user"><span>个人中心</span></i></li>
							<li><i class="el-icon-edit-outline"><span>添加考试</span></i></li>
							<li><i class="el-icon-collection"><span>添加课程</span></i></li>
							<li><i class="el-icon-folder-opened"><span>添加模板</span></i></li>
							<li><i class="el-icon-document"><span>添加计划</span></i></li>
							<li><i class="el-icon-data-analysis"><span>学习报告</span></i></li>
						</ul>
					</div>
				</Sider>

				<!-- 中间内容 -->
				<Content>
					<div class="one-right">
						<Row>
							<Col span="24">
							<p style="height: 50px;"><span class="p3">今日授课</span></p>
							</Col>
						</Row>
						<Row>
							<Col span="7">
							<p style="height: 130px;" class="p4">
								<Row>
									<Col span="24">
									<p style="height: 50px;" class="p6">
										2019秋_信息技术_集训_061
									</p>
									</Col>
								</Row>
								<Row>
									<Col span="24">
									<p style="height: 13px;" class="p7">
										大前端兼全栈2019定制班
									</p>
									</Col>
								</Row>
								<Button class="btn1">开始上课</Button>
							</p>
							</Col>
						</Row>
						<div id="triangle-down"></div>
						<div id="triangle-yuan"></div>
						<Row>
							<Col span="7">
							<p style="height: 15px;" class="p5">
								<span class="span6">03-11 9:00</span></p>
							</Col>
						</Row>
					</div>
					<!-- content第二部分 -->
					<div class="two-right">
						<Row>
							<Col span="24">
							<p style="height: 50px;"><span class="p3">明日备课</span></p>
							</Col>
						</Row>
						<Row>
							<Col span="7">
							<p style="height: 130px;" class="p4">
								<Row>
									<Col span="24">
									<p style="height: 50px;" class="p6">
										2019秋_信息技术_集训_061
									</p>
									</Col>
								</Row>
								<Row>
									<Col span="24">
									<p style="height: 13px;" class="p7">
										大前端兼全栈2019定制班
									</p>
									</Col>
								</Row>
								<Button class="btn1">开始上课</Button>
							</p>
							</Col>
						</Row>
						<div id="triangle-down"></div>
						<div id="triangle-yuan"></div>
						<Row>
							<Col span="7">
							<p style="height: 15px;" class="p5">
								<span class="span6">03-12 9:00</span></p>
							</Col>
						</Row>
						<Row>
							<Col span="24">
							<p style="height: 55px;" class="p8">
								<span class="span7">班级管理</span>
							</p>
							</Col>
						</Row>
						<!-- 第一个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p9">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">1</span>
										<span class="span9">2019秋_信息技术_集训_069</span>
										<span class="span10">2020考研培训课程</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li @click="open"><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs">
									<div class="div1"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>
						<!-- 第二个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p10">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">2</span>
										<span class="span9">2019秋_信息技术_集训_068</span>
										<span class="span10">17级</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li @click="info"><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs1">
									<div class="div2"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>

						<!-- 第三个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p11">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">3</span>
										<span class="span9">2019秋_信息技术_集训_066</span>
										<span class="span10">测试</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li @click="info"><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs2">
									<div class="div3"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>

						<!-- 第四个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p12">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">4</span>
										<span class="span9">2019秋_信息技术_集训_065</span>
										<span class="span10">嘉职17级测试班级</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li @click="info"><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs">
									<div class="div1"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>

						<!-- 第五个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p13">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">5</span>
										<span class="span9">2019秋_信息技术_集训_063</span>
										<span class="span10">嘉职17级顶岗实习测试</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li @click="info"><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs1">
									<div class="div2"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>

						<!-- 第六个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p14">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">6</span>
										<span class="span9">2019秋_信息技术_集训_061</span>
										<span class="span10">大前端兼全栈2019定制班</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs2">
									<div class="div3"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>

						<!-- 第七个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p15">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">7</span>
										<span class="span9">2019科职富强班</span>
										<span class="span11">2019科职java实训 - 富强班</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li @click="info"><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs">
									<div class="div1"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>

						<!-- 第八个 -->
						<Row>
							<Col span="24">
							<p style="height: 120px;" class="p16">
								<Row>
									<Col span="16">
									<p style="height: 70px;">
										<span class="span8">8</span>
										<span class="span9">2019科职java测试班</span>
										<span class="span12">2019课职java实训教学进度计划</span>
									</p>
									</Col>
									<Col span="8">
									<p style="height: 70px;">
										<ul class="ul1">
											<li @click="info"><i class="el-icon-reading"></i><span>去上课</span></li>
											<li><i class="el-icon-document-copy"></i><span>班级态势表</span></li>
											<li><i class="el-icon-picture-outline"></i><span>相册</span></li>
										</ul>
									</p>
									</Col>
								</Row>
								<div class="divs1">
									<div class="div2"></div>
									<span>100%</span>
								</div>
							</p>
							</Col>
						</Row>
					</div>
				</Content>

			</Layout>
		</Layout>
	</div>
</template>

<script>
export default {
  data () {
    /* 修改密码校验 */
    const validatePass = (rule, value, callback) => {
      if (value === '') {
        callback(new Error('密码不能为空'))
      } else {
        if (this.formValidate.aginer !== '') {
          // 对第二个密码框单独验证
          this.$refs.formValidate.validateField('aginer')
        }
        callback()
      }
    }
    const validatePassCheck = (rule, value, callback) => {
      if (value === '') {
        callback(new Error('密码不能为空'))
      } else if (value !== this.formValidate.password) {
        callback(new Error('两次输入的密码不同'))
      } else {
        callback()
      }
    }
    return {
      modal1: false,
      theme3: 'light',
      percentage: 100,
      modal: false,
      labelPosition: 'top',
      formValidate: {
        password: '',
        aginer: '',
        yzm: ''

      },
      /* 修改密码校验 */
      ruleValidate: {
        password: [{
          validator: validatePass,
          tigger: 'blur'
        }],
        aginer: [{
          validator: validatePassCheck,
          tigger: 'blur'
        }],
        yzm: [{
          required: true,
          message: '验证码不能为空',
          tigger: 'blur'
        }]
      }
    }
  },
  components: {

  },
  methods: {
    /* 给通知框定义 */
    info () {
      /* info填内容 */
      this.$Message.info('该课程该进度已完成')
    }
  }
}
</script>

<style>
	@import url("../../static/css/class.css");
	@import url("../../static/css/header.css");
	@import url("../../static/css/sader.css");
	@import url("../../static/css/sader-two.css");
</style>
